package com.mornd.gulimall.ware.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.mornd.gulimall.common.core.entity.BaseEntity;
import com.mornd.gulimall.common.core.entity.PageEntity;
import com.mornd.gulimall.common.core.validation.UpdateGroup;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 仓库信息
 * </p>
 *
 * @author mornd
 * @since 2023-07-29
 */
@Getter
@Setter
@TableName("wms_ware_info")
public class WareInfo extends PageEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @NotNull(groups = UpdateGroup.class)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 仓库名
     */
    @NotBlank
    private String name;

    /**
     * 仓库地址
     */
    @NotBlank
    private String address;

    /**
     * 区域编码
     */
    @NotBlank
    private String areacode;

    /**
     * 搜索关键字
     */
    @TableField(exist = false)
    private String key;

}
